package cn.gx.kevin.controller;


import cn.gx.kevin.common.annotation.ApiDescript;

import cn.gx.kevin.service.IOrgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.io.InputStream;


@ApiDescript("编辑器")
@Controller
@RequestMapping(value = "/editor")
public class EditorController {

    @Autowired
    IOrgService orgService;

    @RequestMapping(value = "/page/{pageName}", method = RequestMethod.GET)
    public String page(@PathVariable("pageName") String pageName, HttpServletRequest request) throws Exception {
        orgService.updateOrgCode();
       return "editor/board/"+pageName;
    }
}
